import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import redis.clients.jedis.Jedis;

/**
 * @version V1.0A
 * @uthor gpt
 * @Project air
 * @Package PACKAGE_NAME
 * @Description: ${TODO}
 * @Date 2021/10/29 20:55
 */
@RunWith(SpringRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext-service.xml"})
public class test {


   @Autowired
   Jedis jedis;

   @Test
   public void testRedis(){

      jedis.set("redis", "123");

      System.out.println(jedis);
   }

}
